Optimal. Leaf size=31 \[ \frac{\tanh ^{-1}(\sin (c+d x))}{a d}-\frac{i \sec (c+d x)}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0435518, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {3501, 3770} \[ \frac{\tanh ^{-1}(\sin (c+d x))}{a d}-\frac{i \sec (c+d x)}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3501
Rule 3770
Rubi steps
\begin{align*} \int \frac{\sec ^3(c+d x)}{a+i a \tan (c+d x)} \, dx &=-\frac{i \sec (c+d x)}{a d}+\frac{\int \sec (c+d x) \, dx}{a}\\ &=\frac{\tanh ^{-1}(\sin (c+d x))}{a d}-\frac{i \sec (c+d x)}{a d}\\ \end{align*}
Mathematica [A] time = 0.129121, size = 34, normalized size = 1.1 \[ \frac{2 \tanh ^{-1}\left (\cos (c) \tan \left (\frac{d x}{2}\right )+\sin (c)\right )-i \sec (c+d x)}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.063, size = 85, normalized size = 2.7 \begin{align*}{\frac{-i}{ad} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-1}}+{\frac{1}{ad}\ln \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) }+{\frac{i}{ad} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-1}}-{\frac{1}{ad}\ln \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.05449, size = 112, normalized size = 3.61 \begin{align*} \frac{\frac{\log \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}{a} - \frac{\log \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )}{a} - \frac{2}{-i \, a + \frac{i \, a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.10465, size = 217, normalized size = 7. \begin{align*} \frac{{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} \log \left (e^{\left (i \, d x + i \, c\right )} + i\right ) -{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} \log \left (e^{\left (i \, d x + i \, c\right )} - i\right ) - 2 i \, e^{\left (i \, d x + i \, c\right )}}{a d e^{\left (2 i \, d x + 2 i \, c\right )} + a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.20004, size = 81, normalized size = 2.61 \begin{align*} \frac{\frac{\log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right )}{a} - \frac{\log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right )}{a} + \frac{2 i}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )} a}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]